package exam;


// 本题为考试单行多行输入输出规范示例，无需提交，不计分。
import java.util.Scanner;

    public class alibaba {
        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            String s =in.nextLine();
            System.out.println(s);
            char[][] num = {{},{},{'A','B','C'},{'D','E','F'},{'G','H','I'},{'J','K','L'},{'M','N','O'},{'P','Q','R','S'},{'T','U','V'},{'W','X','Y','Z'}};
            char c = '1';
            if(s.length()==1||s.length()==0) return;
            for(int i=0;i<s.length();i++){
                int start =i;
                while(i<s.length()-1&&s.charAt(i+1)==s.charAt(i)) i++;
                int len =i-start+1;
                if(s.charAt(i)=='7'||s.charAt(i)=='9'){
                    if(c!='1'){
                        System.out.print(c);
                    }
                    if(s.charAt(i)!='1') c = num[s.charAt(i)-'0'][len%4-1];
                }else if(s.charAt(i)=='1'){
                    continue;
                }else{
                    if(c!='1'){
                        System.out.print(c);
                    }
                    if(s.charAt(i)!='1') c = num[s.charAt(i)-'0'][len%3-1];
                }
            }
            if (s.charAt(s.length()-1)=='1'&&c!='1') System.out.print(c);
        }
    }

